<template>
    <view>
        <view class="lines">
            <view class="line" v-for="(item,k) of list" :key="k" @click="jump(item)">
                {{item.name}}
            </view>
        </view>
    </view>
</template>

<script>
export default {
  name: 'more',
  data() {
    return {
      list: [
        { name: '导入账单', url: '/main/book/batch' },
        { name: '账本管理', url: '/main/book/book' },
        { name: '会员', url: '' },
        { name: '退出登陆', url: '' }
      ]
    }
  },
  methods: {
    jump(item) {
      uni.navigateTo({
        url: item.url,
        fail: () => {
          this.$api.alert('功能内测中，敬请期待')
        }
      })
    }
  }
}
</script>
